package eu.kleinkoerkamp.apptest;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.HttpSessionStore;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.session.ISessionStore;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;

import eu.kleinkoerkamp.apptest.ui.wicket.home.HomePage;

public class GoogleWicketApplication extends WebApplication {

	@Override
	public Class<? extends Page> getHomePage() {
		return HomePage.class;
	}
	
	@Override
	protected void init() {
		super.init();
		addComponentInstantiationListener(new SpringComponentInjector(this));
		getResourceSettings().setResourcePollFrequency(null);
	}
	
	protected ISessionStore newSessionStore() {
	    //return new SecondLevelCacheSessionStore(this, new DiskPageStore());
	    return new HttpSessionStore(this);
	}

}
